local unitName = "bminer" 

local unitDef = {
        name                = "Mining Truck",
        description         = "Mining equipment whose single role is to mine metal from meteorites.",
        acceleration        = 0.06,
        brakerate           = 1.5,
        buildpic            = "bminer.png",
        buildCostEnergy     = 100,
        buildCostMetal      = 100,
        builder             = false,
        buildTime           = 10,
        canFight            = false,
        canGuard            = true,
        canMove             = true,
        canPatrol           = true,
	    canStop             = true,
        category            = [[LAND]],
        corpse              = [[DEAD]],
        reclaimable         = false,

	customParams = {
		is_miner=1,	--used by minig: if the unit can mine is_mineable=1 ressources
		max_cargo=25,},	--used by mining: how much metal the unit can carry at once before having to return to a drop off
	

        footprintx          = 2,
        footprintZ          = 2,
        idleAutoHeal        = 0,
        mass                = 70,
        maxDamage           = 350,
        maxSlope            = 36,
        maxVelocity         = 2,
        maxWaterDepth       = 22,
        movementClass       = "Default2x2",
        noChaseCategory     = [[LAND SINK HOVER FIXEDWING GUNSHIP SHIP FLOAT SUB]],
        objectName          = "bminer.s3o",
        onoffable           = false,
        sightDistance       = 500,
        smoothAnim          = true,
        trackOffset         = 12,
        trackStrength       = 5,
        trackStretch        = 1,
        trackType           = [[StdTank]],
        trackWidth          = 15,
        turnInPlace         = 1,
        turnRate            = 1000,
        script              = "bminer.lua",
		
		sounds               = {
              select = {"golgotha/vehicle_done_44khz",},
              ok = {"golgotha/vehicle_done_44khz",},},
		
		sfxtypes            = {
			explosiongenerators = {"custom:ct_mininglaser_blue",},},
		

		weapons = {
		[1]={name  = "MiningLaser",
			mainDir            = [[0 0 1]],
			maxAngleDif        = 180,
			onlyTargetCategory = [[MINERALS]], }, },

        }


return lowerkeys({ [unitName] = unitDef })